package com.landian.commons.jpa.hql;

import lombok.Getter;

/**
 * 查询部分封装对象
 *
 * @author caojl
 * @create 2017/12/19
 **/
public class QueryPart {

    public static QueryPart newInstance(ParameterUnit parameterUnit, PredicateHql predicateHql){
        return new QueryPart(parameterUnit, predicateHql);
    }

    private QueryPart(ParameterUnit parameterUnit, PredicateHql predicateHql){
        this.parameterUnit = parameterUnit;
        this.predicateHql = predicateHql;
    }

    @Getter
    private ParameterUnit parameterUnit;

    @Getter
    private PredicateHql predicateHql;
}
